<div class="profileShortView">
			<div class="panelUserAvatar">
				<img src="{$urlStatic}/{image src=$user->getAvatar() w=90}" title="{$user->getFirstName()} {$user->getLastName()}" alt="{$user->getFirstName()} {$user->getLastName()}"/>
				<h1>{$user->getFirstName()}<br/>{$user->getLastName()}</h1>
			</div>
			<div class="panelUserInfo">
				<table cellpadding="0" cellspacing="0" align="center" class="panelProfle">
					<tr><td class="label">Age:</td><td>{$user->getAge()}</td></tr>
					<tr><td class="label">NTPR:</td><td>{$user->userExtendedProfile->getNtrp()}</td></tr>
					<tr><td class="label">Location:</td><td>{$user->getLocation()}</td></tr>
				</table>
			</div>
			<div class="panelUserInfo">
				<table cellpadding="0" cellspacing="0" align="center" class="panelProfle">
					<tr><td class="label">Comments:</td><td>{$user->getCommentsCount()}</td></tr>
					<tr><td class="label">Product opinions:</td><td>{$user->getProductCommentsCount()}</td></tr>
					<tr><td class="label">Connnections:</td><td>{$user->getCOnnectionsCount()} {'friends'|t}</td></tr>
				</table>
			</div>
			
			<div class="profileLinks">
				{if $_userLoggedIn}
				{if $user->getId()!=$_user->getId() && !$isFriend}<a href="{url label=newConnect idUser=$user->getId()}" title="" class="connectFriend">connect to frined</a>{/if}
			{if $user->getId()!=$_user->getId()}<a href="{url label=newMessage idUser=$user->getId()}" title="" class="sendMessage">send message</a>{/if}
			{if $user->getId()==$_user->getId()}<a href="profile_edit.html" title="" class="edit">edit my profile</a>{/if}
			{if $user->getId()!=$_user->getId() && $isFriend}<a href="#" title="" class="disconnectFriend">remove from my friends</a>{/if}
			{else}
			<a href="{url label=login}" title="" class="connectFriend">connect to frined</a>
			<a href="{url label=login}" title="" class="sendMessage">send message</a>
			{/if}
			{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=userAddGallery}" title="" class="edit">{'add gallery'|t}</a>{/if}
			</div>
		</div>
		
		<h1>{'User Galleries'|t}</h1>
		<br/>
		{foreach from=$userGalleries item=gallery}
		<div class="panel310 panel310Gal">
			<div class="backgroundFrame310Top"></div>
			<div class="backgroundFrame310">
				<div class="galleryBoxItem">
					<h2><a href="{url label=userGallery idGallery=$gallery->getId()}" title="{$gallery->getTitle()}">{$gallery->getTitle()}</a></h2>
					<a href="{url label=userGallery idGallery=$gallery->getId()}" title="{$gallery->getTitle()}"><img src="{$urlStatic}/{image src=$gallery->getThumbnail() w=290}" alt="{$gallery->getTitle()}" class="thumb"/></a>
					<p class="date">{'added'|t}: {$gallery->getDate()}</p>
					<p class="desc">{$gallery->getDescription()|truncate:220}</p>
					<div class="thumbPrev">
						{foreach from=$gallery->files item=file}
						
						<a href="{url label=userGallery idGallery=$gallery->getId()}" title="{'view gallery'|t}"><img src="{$urlStatic}/{image src=$file h=90}" alt="{'view gallery'|t}}"/></a>
						
						{/foreach}
						
					</div>
					<div class="clearBoth"></div>
					<p class="links">
						<a href="{url label=userGallery idGallery=$gallery->getId()}" title="{'See gallery'|t}" class="photos">{$gallery->getNumPhotos()} {'photos'|t}</a>
						<a href="{url label=userGallery idGallery=$gallery->getId()}" title="{'See gallery'|t}" class="view">{'view'|t}</a>
						
						<a class="handUp rateComment" title="{'Up'|t}" href="{url label=ajaxRateGallery idGallery=$gallery->getId() like=1}">{$gallery->getLikes()}</a>
						<a class="handDown rateComment" title="{'Down'|t}" href="{url label=ajaxRateGallery idGallery=$gallery->getId() like=0}">{$gallery->getDislikes()}</a>
					</p>
				</div>
			</div>
			<div class="backgroundFrame310Bottom"></div>
		</div>
		{/foreach}
		
		
		
		
		
		
		
	
		<div class="clearBoth"></div>
